//
//  BaseViewController.h
//  ETONEQP
//
//  Created by Lin Zhang on 2018/9/4.
//  Copyright © 2018年 Lin Zhang. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface BaseViewController : UIViewController

/**
 提示信息完成回调
 */
typedef void (^ShowCompletionBlock)(void);

-(void)showSuccessResultTips:(NSString*)resultMsg animated:(BOOL)animated;
-(void)showFailedResultTips:(NSString*)errorMsg animated:(BOOL)animated;
-(void)showSuccessResultTips:(NSString*)resultMsg animated:(BOOL)animated forSeconds:(NSTimeInterval)seconds;
-(void)showFailedResultTips:(NSString*)errorMsg animated:(BOOL)animated forSeconds:(NSTimeInterval)seconds;
-(void)showSuccessResultTips:(NSString *)resultMsg animated:(BOOL)animated forSeconds:(NSTimeInterval)seconds completionBlock:(ShowCompletionBlock)completion;

//失败提示(无图片)
-(void)showFailedResultTips:(NSString*)errorMsg animated:(BOOL)animated forSeconds:(NSTimeInterval)seconds completionBlock:(ShowCompletionBlock)completion;
//失败提示(有图片)
-(void)showFailedResultTipsWithImage:(NSString*)errorMsg animated:(BOOL)animated forSeconds:(NSTimeInterval)seconds completionBlock:(ShowCompletionBlock)completion;

-(void)hideResultTips:(BOOL)animated;
-(void)showProgressTips:(NSString*)progressMsg animated:(BOOL)animated;
-(void)hideProgressTips:(BOOL)animated;
-(void)startLocation;
-(NSString *)getRealIPAddress;
-(NSString *)getLocalIPAddress;

//字体设计
-(NSMutableAttributedString *)gettextStyle:(NSString *)fontName font:(float)font color:(UIColor *)color text:(NSString *)text;

@end
